﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageNguoiDung.Master" AutoEventWireup="true" CodeBehind="BanTrang2.aspx.cs" Inherits="DoAn.BAN.BanTrang2" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
    {
        width: 98%;
    }
    .style2
    {
        width: 90px;
    }
        .style3
        {
        }
        .style8
        {
            width: 257px;
        }
        .style9
        {
            height: 17px;
        }
        .style11
        {
            width: 1277px;
        }
    </style>
    <script type="text/javascript">
        function add()
        {
            var pNode = document.getElementById("trup");
            var upNode = document.createElement("Input");
            upNode.type = "file";
            upNode.size = "30";
            pNode.appendChild(upNode);

            var pNode2 = document.getElementById("trdel");
            var bntNode = document.createElement("Input");
            var brNode = document.createElement("br");
            bntNode.type = "button";
            bntNode.value = "Xóa";
            pNode2.appendChild(bntNode);
            pNode2.appendChild(brNode);
        }
    </script>
    <script src="../Scripts/ThemControl.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
    <tr>
        <td class="style2">
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style2">
            &nbsp;</td>
        <td>
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                HeaderText="Qui Trình Bán Hàng" Width="800px">
                <HeaderStyle Font-Bold="True" Font-Size="Medium" ForeColor="#FF9933" 
                    HorizontalAlign="Left" />
                <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="false">
    <table class="style1" id="tbPage2">
        <tr>
            <td colspan="5" class="style9">
                2. Đặt Tên và Mô Tả Sản Phẩm</td>
        </tr>
        <tr>
            <td class="style11">
                Tên Sản Phẩm:</td>
            <td>
                <dx:ASPxTextBox ID="txtTenSanPham" runat="server" Width="254px" Height="20px">
                </dx:ASPxTextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTenSanPham" ErrorMessage="RequiredFieldValidator">Bạn Phải nhập tên Sản Phẩm</asp:RequiredFieldValidator>
                <br />
            </td>
            <td class="style8"  >
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style11">
                Mô Tả Ngắn Gọn:</td>
            <td>
                <dx:ASPxTextBox ID="txtMoTaNgan" runat="server" Width="254px">
                </dx:ASPxTextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtMoTaNgan" ErrorMessage="RequiredFieldValidator">Hãy Điền Mô Tả</asp:RequiredFieldValidator>
                <br />
            </td>
            <td class="style8">
                <asp:Label ID="labtest" runat="server" Text="Label"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style11"  id="trup">
                <br />
                Mô Tả Chi Tiết</td>
            <td ID="trup" class="style3" colspan="4">
                <dx:ASPxHtmlEditor ID="txtMoTaChiTiet" runat="server" 
                    Width="650px" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" 
                    CssPostfix="Aqua">
                    <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
                        <ViewArea>
                            <Border BorderColor="#A3C0E8" />
                        </ViewArea>
                    </Styles>
                    <Settings AllowHtmlView="False" AllowPreview="False" />
                    <SettingsImageUpload>
                        <ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png">
                        </ValidationSettings>
                    </SettingsImageUpload>
                    <SettingsImageSelector>
                        <CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" />
                    </SettingsImageSelector>
                    <SettingsDocumentSelector>
                        <CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp" />
                    </SettingsDocumentSelector>
                    <Images SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                        <LoadingPanel Url="~/App_Themes/Aqua/HtmlEditor/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFileManager>
                        <FolderContainerNodeLoadingPanel Url="~/App_Themes/Aqua/Web/tvNodeLoading.gif">
                        </FolderContainerNodeLoadingPanel>
                        <LoadingPanel Url="~/App_Themes/Aqua/Web/Loading.gif">
                        </LoadingPanel>
                    </ImagesFileManager>
                </dx:ASPxHtmlEditor>
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtMoTaChiTiet" ErrorMessage="RequiredFieldValidator">Hãy Điền Mô Tả</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style11"  >
                &nbsp;</td>
            <td>
                
                <dx:ASPxUploadControl ID="upcHinAnh" runat="server" Height="24px" 
                    ShowAddRemoveButtons="True" Width="290px" >
                    <ValidationSettings AllowedFileExtensions=".jpg,.jpeg,.jpe,.gif,.png" MaxFileSize="2097152" MaxFileSizeErrorText="Bạn chỉ được upload ảnh dung lượng tối đa 2M">
                    </ValidationSettings>
                    <AddButton Text="Thêm">
                    </AddButton>
                    <RemoveButton Text="Xóa">
                    </RemoveButton>
                </dx:ASPxUploadControl>
                
            </td>
            <td class="style8">
                &nbsp;</td>
            <td>
                <dx:ASPxButton ID="ASPxButton1" runat="server" BackColor="White" 
                    CausesValidation="False" Height="60px" Width="60px" 
                    PostBackUrl="~/BAN/BanTrang1.aspx">
                    <BackgroundImage ImageUrl="~/Images/Pre.png" />
                    <Border BorderStyle="None" />
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="bntNext" runat="server" BackColor="White" Height="60px" 
                    Width="60px"  OnClick="bntNext_Click">
                    <BackgroundImage ImageUrl="~/Images/Next.png" />
                    <Border BorderStyle="None" />
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
                    </dx:PanelContent>
</PanelCollection>
            </dx:ASPxRoundPanel>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style2">
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>
</asp:Content>
